package com.wyh.mapper.groupOne.projectmapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wyh.domain.dto.groupOne.projectaboutdto.BuildingunitsDTO;
import com.wyh.domain.dto.groupOne.projectaboutdto.utils.YesOrNo;
import com.wyh.domain.po.groupOne.projectabout.BuildingunitsPO;

public interface MasterDataBuildingUnitsProjectMapper extends BaseMapper<BuildingunitsPO> {


    /**
     * 获取楼栋信息
     *
     * @return
     */
    public BuildingunitsDTO getBuildingMessage(YesOrNo yesOrNo);

    /**
     * 获取组团信息
     */
    public BuildingunitsDTO getClusterMessage(Integer id);

    /**
     * 获取单元信息
     */
    public BuildingunitsDTO getUnitMessage(YesOrNo yesOrNo);
    /**
     * 是否自关联
     */
    public  BuildingunitsDTO getYesOrNo(Integer id);

    /**
     * 检查上级是否自关联
     */
    public BuildingunitsDTO getParentYesOrNo(Integer id);
}
